package com.ouheng.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

import com.ouheng.shop.dao.ProductPropertyDao;
import com.ouheng.shop.domain.ProductPropertyDO;
import com.ouheng.shop.service.ProductPropertyService;



@Service
public class ProductPropertyServiceImpl implements ProductPropertyService {
	@Autowired
	private ProductPropertyDao productPropertyDao;
	
	@Override
	public ProductPropertyDO get(Long id){
		return productPropertyDao.get(id);
	}
	
	@Override
	public List<ProductPropertyDO> list(Map<String, Object> map){
		return productPropertyDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return productPropertyDao.count(map);
	}
	
	@Override
	@Transactional
	public int save(ProductPropertyDO productProperty){
		return productPropertyDao.save(productProperty);
	}
	
	@Override
	@Transactional
	public int update(ProductPropertyDO productProperty){
		return productPropertyDao.update(productProperty);
	}
	
	@Override
	@Transactional
	public int remove(Long id){
		return productPropertyDao.remove(id);
	}
	
	@Override
	@Transactional
	public int batchRemove(Long[] ids){
		return productPropertyDao.batchRemove(ids);
	}
	
}
